Dart.Mail Namespace > Imap Class > Invoke Method : Invoke(String,Byte[]) Method |
Public Overloads Function Invoke( _ ByVal command As String, _ ByVal data() As Byte _ ) As ImapResponse()
Dim instance As Imap Dim command As String Dim data() As Byte Dim value() As ImapResponse value = instance.Invoke(command, data)
public ImapResponse[] Invoke( string command, byte[] data )
public: ImapResponse*[]* Invoke( string* command, byte[]* data )
public: array<ImapResponse^>^ Invoke( String^ command, array<byte>^ data )
Exception | Description |
---|---|
ProtocolException | Bad IMAP protocol response received from server. |
System.Net.Sockets.SocketException | Socket connectivity problem. |
This is useful for communicating with servers that recognize proprietary commands not included in the Imap component model.
data is sent as a literal following any continuation responses from the IMAP server. This follows the APPEND command model, where the APPEND command is issued, the server issues a continuation response, and the actual message data is then sent.